import React from 'react';
import CnComponentWarp from './CnComponentWarp';
import TransitionAnimationComponent from './TransitionAnimationComponent';

class ComponentWarp extends React.Component {
	
	render() {
		return (
			<CnComponentWarp>
				<TransitionAnimationComponent key={this.props.currentKey || (this.props.location && this.props.location.pathname) || 'componentWarp'}>
	        		{this.props.children}
	        	</TransitionAnimationComponent>
	        </CnComponentWarp>
		);
	}
	
}

export default ComponentWarp;